package com.xbongbong.pro.invoice.pojo;

import com.xbongbong.saas.enums.business.InvoiceEnum;
import com.xbongbong.saas.enums.business.PurchaseInvoiceEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.io.Serializable;


/**
 * 关联类型pojo
 *
 * @author yuqian
 * @version v1.0
 * @date 2019/11/18 14:02
 * @since v1.0
 */
@Getter
@Setter
@ToString
public class RefTypePojo implements Serializable {

    private static final long serialVersionUID = -4132610430657469276L;
    /**
     * 关联业务类型
     */
    Integer businessType;

    /**
     * 关联业务枚举
     */
    InvoiceEnum invoiceEnum;


    PurchaseInvoiceEnum purchaseInvoiceEnum;
    /**
     * 关联业务模板对应的金额
     */
    String amountAttr;
    /**
     * 关联业务模板对应的开票金额attr
     */
    String invoiceAmountAttr;

    public RefTypePojo() {
    }

    public RefTypePojo(Integer businessType, InvoiceEnum invoiceEnum) {
        this.businessType = businessType;
        this.invoiceEnum = invoiceEnum;
    }

    public RefTypePojo(Integer businessType, PurchaseInvoiceEnum purchaseInvoiceEnum) {
        this.businessType = businessType;
        this.purchaseInvoiceEnum = purchaseInvoiceEnum;
    }

    public RefTypePojo(Integer businessType, InvoiceEnum invoiceEnum, String amountAttr, String invoiceAmountAttr) {
        this.businessType = businessType;
        this.invoiceEnum = invoiceEnum;
        this.amountAttr = amountAttr;
        this.invoiceAmountAttr = invoiceAmountAttr;
    }

    public RefTypePojo(Integer businessType, PurchaseInvoiceEnum purchaseInvoiceEnum, String amountAttr, String invoiceAmountAttr) {
        this.businessType = businessType;
        this.purchaseInvoiceEnum = purchaseInvoiceEnum;
        this.amountAttr = amountAttr;
        this.invoiceAmountAttr = invoiceAmountAttr;
    }
}
